package com.flyee.communicate.character{
	
	import com.flyee.communicate.Handler;
	import com.flyee.io.socket.command.down.CommandDown;
	import com.flyee.ro.commanddown.JoinRoomDown;
	import com.flyee.service.pool.ObjectCollection;
	import com.flyee.utils.MyLog;
	import com.flyee.utils.Obsevable;	
	
	public class JoinRoomHandler extends Obsevable implements Handler{
		
		public function JoinRoomHandler(){
			
		}

		public function process(cmd:CommandDown) : void{
			var command : JoinRoomDown = cmd as JoinRoomDown;
			ObjectCollection.bufferArray = command.avatars.source;
	        MyLog.debug("Join room success");
	        setChanged();	        
	        notifyObsevers("getScene", ObjectCollection.master.sceneInstanceId);
	        
		}

	}
}